package com.meituan.sdk.model.tuangouNg.atomgoods.productSideDishUpdate;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 创建或更新菜品加料信息
* This file was automatically generated.
*/
@ApiMeta(
    path = "/tuangou/ng/atomgoods/product/sideDish/update",
    businessId = 1,
    apiVersion = "10028",
    apiName = "product_side_dish_update",
    needAuth = true
)
public class ProductSideDishUpdateRequest implements MeituanRequest<ProductSideDishUpdateResponse> {
    /**
    * <p data-diff-id="ct-diff-id-48462e6a-09ec-4581-be0b-c155ae01f57c">附件信息/加价属性类型，1-总部, 2-门店</p>
    */
    @NotNull(message = "scope不能为空")
    @SerializedName("scope")
    private Integer scope;
    /**
    * <p data-diff-id="ct-diff-id-cbb09a29-5b4c-4b86-beed-78b532c4c68b">总部code，当scope = 1时必填</p>
    */
    @SerializedName("vendorChainId")
    private String vendorChainId;
    /**
    * <p data-diff-id="ct-diff-id-9fec4720-4e8e-4f3c-b143-8220fcc3d86e">门店code，当scope = 2时必填</p>
    */
    @SerializedName("vendorShopId")
    private String vendorShopId;
    /**
    * <p data-diff-id="ct-diff-id-3565b9af-b666-4b6e-843b-166427a5b6f2">加料列表</p>
    */
    @NotEmpty(message = "sideDishList不能为空")
    @SerializedName("sideDishList")
    private List<PSideDish> sideDishList;

    public Integer getScope() {
        return scope;
    }
    public void setScope(Integer scope) {
        this.scope = scope;
    }
    public String getVendorChainId() {
        return vendorChainId;
    }
    public void setVendorChainId(String vendorChainId) {
        this.vendorChainId = vendorChainId;
    }
    public String getVendorShopId() {
        return vendorShopId;
    }
    public void setVendorShopId(String vendorShopId) {
        this.vendorShopId = vendorShopId;
    }
    public List<PSideDish> getSideDishList() {
        return sideDishList;
    }
    public void setSideDishList(List<PSideDish> sideDishList) {
        this.sideDishList = sideDishList;
    }


    @Override
    public MeituanResponse<ProductSideDishUpdateResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<ProductSideDishUpdateResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "ProductSideDishUpdateRequest{" + "scope=" + scope + "," + "vendorChainId=" + vendorChainId + "," + "vendorShopId=" + vendorShopId + "," + "sideDishList=" + sideDishList + "}";
    }
}
